.search-wrap {
    position: relative;
    min-width: 56px;
    &.in {
        .search-input {
            width: 320px;
            opacity: 1;
        }
        #search {
            color: @lightPrimaryColor
        }
    }
    .search-input {
        position: relative;
        z-index: 2;
        width: 0;
        height: 36px;
        margin: 10px 10px 0 0;
        border: none;
        background: transparent;
        color: #fff;
        border-bottom: 2px solid #fff;
        border-radius: 0; // fix ios
        opacity: 0;
        .transition(.2s);
        &::-webkit-input-placeholder {
            color: #f6f6f6;
        }
    }
    .header-icon {
        position: absolute;
        top: 0;
        z-index: 3;
    }
    #search {
        right: 0;
    }
    #back {
        display: none;
        left: 0
    }
}

.search-panel {
    position: fixed;
    top: 50px;
    right: 65px;
    z-index: 36;
    width: 323px;
    max-height: 70%;
    overflow-y: auto;
    background: #fff;
    border-radius: 5px;
    -webkit-box-shadow: @boxShadow;
    box-shadow: @boxShadow;
    opacity: 0;
    visibility: hidden;
    .transform(translateY(-50%) scale(.5));
    .transition(.3s, ease-in);
    &.in {
        opacity: 1;
        visibility: visible;
        .transform(none);
    }
}

.search-result {
    margin: 0;
    padding: 0;
    text-align: center;
    .item {
        line-height: 1.6em;
        border-top: 1px solid @borderColor;
        &:first-child {
            border-top: none;
        }
        vertical-align: middle;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -moz-osx-font-smoothing: grayscale;
        position: relative;
        background: #77AAFF;
        -webkit-transition-property: color;
        transition-property: color;
        -webkit-transition-duration: .3s;
        transition-duration: .3s;
        &:before {
            content: "";
            position: absolute;
            z-index: -1;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            -webkit-transform: scaleY(1);
            transform: scaleY(1);
            -webkit-transform-origin: 50%;
            transform-origin: 50%;
            -webkit-transition-property: transform;
            -webkit-transition-property: -webkit-transform;
            transition-property: -webkit-transform;
            transition-property: transform;
            transition-property: transform, -webkit-transform;
            -webkit-transition-duration: .3s;
            transition-duration: .3s;
            -webkit-transition-timing-function: ease-out;
            transition-timing-function: ease-out
        }
        &:active,
        &:focus,
        &:hover {
            color: #fff
        }
        &:active:before,
        &:focus:before,
        &:hover:before {
            -webkit-transform: scaleY(0);
            transform: scaleY(0)
        }
    }
    .title {
        height: 40px;
        line-height: 50px;
        font-size: 20px;
        .hoverLine(#fff);
    }
    .tips {
        padding: 30px 0;
        text-align: center;
        color: @secondaryTextColor;
    }
}

.lock-size {
    position: absolute;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

@media screen and (max-width:760px) {
    .search-wrap {
        &.in {
            position: absolute;
            top: 0;
            right: 0;
            z-index: 10;
            width: 100%;
            height: 100%;
            padding: 0 16px 0 56px;
            background-image: @bg-header;
            .search-input {
                width: 100%;
            }
            #back {
                display: block;
            }
        }
    }
    .search-panel {
        z-index: 28;
        top: 56px;
        right: 0;
        width: 100%;
        height: ~'calc(100vh - 56px)';
        max-height: ~'calc(100vh - 56px)';
        border-radius: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}
